/*
 * @(#)MPQueryName.java
 * Date 2013-10-15
 * Version 1.0
 * Author Jim Horner
 * Copyright (c)2012
 */


package us.hornerscorners.lamppost.mpq.constant;

import us.hornerscorners.lamppost.registry.constant.IQueryName;


/**
 * Enum description
 *
 */
public enum MPQueryName implements IQueryName {

    // Mutipatient Stored Queries
    FindDocumentsForMultiplePatients("urn:uuid:3d1bdb10-39a2-11de-89c2-2f44d94eaa9f"), 
    FindFoldersForMultiplePatients("urn:uuid:50d3f5ac-39a2-11de-a1ca-b366239e58df"),
    ;

    /** Field description */
    private final String uuid;

    /**
     * Constructs ...
     *
     *
     * @param u
     */
    private MPQueryName(String u) {
        this.uuid = u;
    }

    /**
     * Method description
     *
     *
     * @param uuid
     *
     * @return
     */
    public static MPQueryName toQueryName(String uuid) {

        MPQueryName result = null;

        for (MPQueryName myname : values()) {

            if (myname.uuid.equals(uuid)) {

                result = myname;

                break;
            }
        }

        return result;
    }

    /**
     * Method description
     *
     *
     * @return
     */
    @Override
    public String getName() {
        return name();
    }

    /**
     * Method description
     *
     *
     * @return
     */
    @Override
    public String getUUID() {
        return this.uuid;
    }
}
